package com.ct.mybatis.service;

import com.ct.mybatis.mapper.UserInfoMapper;
import com.ct.mybatis.model.UserInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@RequestMapping("/serivce")
@Service
public class UserService {
    @Autowired
    private UserInfoMapper userInfoService;
    @RequestMapping("/selectAll")
    public List<UserInfo> selectAll () {
        return userInfoService.selectAll();
    }
}
